package com.clw.classfile.constantpool.info;

/**
 * Created by chengliwei on 2018/11/12.
 */
public class ConstantMethodHandle implements ConstantInfo {

    public static final byte TAG = 15; // value = 15
    private byte referenceKind; // 值必须在1~9之间（包括1和9），它决定了方法句柄的类型。方法句柄类型的值表示方法句柄的字节码行为
    private short referenceIndex; // 值必须是对常量池的有效索引

    public ConstantMethodHandle(byte referenceKind, short referenceIndex) {
        this.referenceKind = referenceKind;
        this.referenceIndex = referenceIndex;
    }
}
